package model

type Project struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
	// 数据库端口
	BaseModel
}

func GetProjectByID(id int) (*Project, error) {
	var project Project
	DB.First(&project, id)
	return &project, nil
}
